{include 'admin/layout/header_list'}
<link rel="stylesheet" href="__ADMIN_STATIC__/css/plugin.css?random={extendSetting('random')}">
<div class="ltcms_container">
    <div class="container_title">
        <form action="{LTCMS_ROUTE_PREFIX}/memberAdmin/index" method="get" class="ltcms_search">
            <input name="keyword" type="text" placeholder="请输入用户名" {if isset($request['keyword'])} value="{$request['keyword']}" {/if} >
            <button type="submit" class="btn3">搜索</button>
        </form>
    </div>
    <section class="ltcms_content">
        <div class="ltcms_list">
            <table class="list_table">
                <col width="40px">
                <col width="60px">
                <col width="200px">
                <col width="60px">
                <col width="200px">
                <col>
                <tr>
                    <td class="th"><input id="selectAll" type="checkbox"></td>
                    <td class="th">id</td>
                    <td class="th">用户名</td>
                    <td class="th">状态</td>
                    <td class="th">角色</td>
                    <td class="th">操作</td>
                </tr>
                {if $rowData}
                {foreach $rowData["data"] $key $val}
                <tr class="tr">
                    <td><input class="checkbox" name="check_id" type="checkbox" value="{$val['id']}"></td>
                    <td>{$val["id"]}</td>
                    <td>{$val["user"]}</td>
                    <td>{$val["statusFormat"]}</td>
                    <td>{$rowData["roleInfo"][$val["roleId"]]}</td>
                    <td>
                        <div class="btn4">
                            <a href="{LTCMS_ROUTE_PREFIX}/memberAdmin/edit?id={$val['id']}" title="编辑">
                                <i class='btn4-img iconfont icon-bianji'></i>
                            </a>
                            <a href="{LTCMS_ROUTE_PREFIX}/memberAdmin/modifyPwd?id={$val['id']}" title="修改密码">
                                修改密码
                            </a>
                            <i onClick="runApi(this)" title="删除" data-close="4" data-submit-url="{LTCMS_ROUTE_PREFIX}/memberAdmin?id={$val['id']}" data-method="delete" alt="" class="btn4-img del iconfont icon-delete"></i>
                        </div>
                    </td>
                </tr>
                {/foreach}
                {/if}
            </table>
        </div>
    </section>
    <div class="list-bottom">
        <div class="bottom-left">
            <a href="{LTCMS_ROUTE_PREFIX}/memberAdmin/create"><button class="btn2 trash">添加</button></a>
            <button class="btn2 del1" onclick="dataMoreDel(this)" data-close="3" data-submit-url="{LTCMS_ROUTE_PREFIX}/memberAdmin" data-method="delete"  >彻底删除</button>
        </div>
        <div class="pages">
            {if $rowData}
            {php echo app("P_page")->getPageBarV2($rowData);}
            {/if}
        </div>
    </div>
</div>
<script src="__ADMIN_STATIC__/js/list.js?random={extendSetting('random')}"></script>
{include 'admin/layout/footer'}